package com.example.user.dal.dataobject.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.framework.mybatis.core.dataobject.BaseDO;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author yuzhenxin
 * @date 2023/3/27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor // 使用 @Builder 后，mybatis不select所有字段，就会报错，要加上无参构造
@AllArgsConstructor
@Builder
@TableName("t_admin_user")
@Accessors(chain = true)
public class AdminUserDO extends BaseDO {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String userId;

    private String name;

    private String password;

    private String permissions;
}
